package com.itheima.service.impl;

import com.itheima.domain.User;
import com.itheima.domain.keshi;
import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangyan
 * @date 2021/2/24 19:39
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> findAll() {
        List<User> userList = userMapper.findAll();
        return userList;
    }


    @Override
    public void add(User user) {

    }

    @Override
    public List<User> findByName(String name) {
        return userMapper.findByName(name);
    }
}
